Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: re-enable code challenge support #1035

Merged
merged 1 commit into from
Mar 11, 2024
Merged

fix: re-enable code challenge support #1035

merged 1 commit into from
Mar 11, 2024

Conversation

shetzel
Copy link
Contributor

@shetzel shetzel commented Mar 7, 2024

What does this PR do?

CLI auth should default to using code challenges and code verifiers for PKCE. This used to be the case but somehow it was disabled. This adds it back and also adds unit tests to ensure it stays that way.

What issues does this PR fix or reference?

@W-15198289@

QA:
All auth that happens as part of NUTs will verify that it doesn't break anything. To ensure that it works with an org that has PKCE set, open your org, to to setup, search for "oauth", click on "OAuth and OpenID Connect Settings", toggle the "Require Proof Key for Code Exchange (PKCE) Extension" on. Then do sf org login web targeting that org.

@mdonnalley
Copy link
Contributor

QA

  • linked sfdx-core to plugin-org, linked plugin-auth to sf
  • Enabled Require Proof Key for Code Exchange (PKCE) Extension on org
    sf org login web

@mdonnalley mdonnalley merged commit 5786688 into main Mar 11, 2024
70 checks passed
@mdonnalley mdonnalley deleted the sh/code_challenge branch March 11, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants